package org.eclipse.swt.snippets;

import java.io.IOException;

import com.sshtools.common.configuration.SshToolsConnectionProfile;
import com.sshtools.common.ui.SessionProviderFactory;
import com.sshtools.common.ui.SessionProviderFrame;
import com.sshtools.common.ui.SshToolsApplicationException;
import com.sshtools.j2ssh.SshClient;

public class SSHExample {
    
    public static void main(String args[]) throws IOException, SshToolsApplicationException{
	 SshClient ssh = new SshClient();
	
	  // Connection code goes here - see SshClient for more details
	 
	  SessionProviderFrame frame = new SessionProviderFrame(
	                            new SshToolsConnectionProfile(),
	                                                         ssh,
	           SessionProviderFactory.getInstance().getProvider("sshterm"));
	  frame.pack();
	  frame.show();
    }

}
